package com.zxl.chatroomserver;

/**
 * create server by AIO
 */
public class ServerOfAIO {

    public static void main(String[] args) {
        int port = 8080;

        // set port number by param that get from args
        if (args != null && args.length > 0) {
           port= Integer.valueOf(args[0]);
        }

        AsyncServerHandler handler=new AsyncServerHandler(port);
        new Thread(handler).start();
    }
}
